AddCSLuaFile( "cl_init.lua" )

AddCSLuaFile( "shared.lua" )



include('shared.lua')



local Ground = 1 + 0 + 2 + 8 + 32



function ENT:Initialize()

	self.Entity:SetModel( "models/props_junk/Rock001a.mdl" )

	self.Entity:SetMaterial("models/debug/debugwhite")

	self.Entity:PhysicsInit( SOLID_VPHYSICS )

	self.Entity:SetMoveType( MOVETYPE_VPHYSICS )

	self.Entity:SetSolid( SOLID_VPHYSICS )

	
	local hash = { }

		hash.name = "nothing"

		hash.rarity = 3
	
		hash.yield = 0
	self.resource = hash

	
	local phys = self.Entity:GetPhysicsObject()

	if (phys:IsValid()) then

		phys:SetMass(200)

		phys:Wake()

	end

	self:SetOverlayText( self.resource.name .. ": " .. self.resource.yield )

	
	timer.Simple(60, function(ent)

		if(ent:IsValid()) then

			ent:Remove()

		end

	end, self.Entity)

end
